<!--
 * @Author: daidai
 * @Date: 2022-03-01 09:16:22
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-09-29 15:12:34
 * @FilePath: \web-pc\src\pages\big-screen\components\item-wrap\item-wrap.vue
-->
<template>
  <div class="lr_titles" :class="[type]">
    <div class="item_title" v-if="title !== ''">
      <div class="title-inner">
        {{ title }}
      </div>
      <div class="you"></div>
    </div>
    <div
      :class="title !== '' ? 'item_title_content' : 'item_title_content_def'"
    >
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    title: {
      type: String,
      default: () => '',
    },
    type: {
      type: String,
      default: 'bg0',
    },
  },
  created() {},

  mounted() {},
  methods: {},
};
</script>
<style lang="scss" scoped>
$item-title-height: 38px;
$item_title_content-height: calc(100% - 38px);

.lr_titles {
  box-sizing: border-box;
  margin: 0 10px;
  pointer-events: auto;
  background: url('../../assets/img/launch/pack/body_bg0.png') no-repeat center;
  // background-size: 100% 100%;
  // background-size: contain;
  // border: 1px solid red;

  :deep(.border-box-content) {
    box-sizing: border-box;
    padding: 6px 16px 0px;
  }

  .item_title {
    height: $item-title-height + 4px;
    line-height: $item-title-height;
    width: 100%;
    color: #31abe3;
    background: url('../../assets/img/launch/pack/header_bg.png') no-repeat
      center;
    background-position: center center;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .title-inner {
      text-indent: 1.3em;
      font-family: PangMenZhengDao;
      font-size: 25px;
      letter-spacing: 2px;
      line-height: 42px;
      color: #fff;
    }
  }

  .item_title_content {
    height: $item_title_content-height;
  }

  .item_title_content_def {
    width: 100%;
    height: 100%;
  }
}

.bg0 {
  background-image: url('../../assets/img/launch/pack/body_bg0.png') !important;
}

.bg1 {
  background-image: url('../../assets/img/launch/pack/body_bg0.png') !important;
}

.bg2 {
  background-image: url('../../assets/img/launch/pack/body_bg1.png') !important;
}
</style>
